﻿using System;

namespace State
{
    public class EveningState : State
    {
        public override void DoWork(Work work)
        {
            if (work.Finish)
            {
                work.SetState(new RestState());
                work.DoWork();
            }
            else
            {
                Console.WriteLine("当前时间：{0}，加班中...", work.Hour);
            }
        }
    }
}
